package com.Service.Impl;

import com.Mapper.AdminMapper;
import com.Service.AdminService;
import com.entity.Admin;
import com.utils.SqlSessionUtils;
import org.apache.ibatis.session.SqlSession;

/**
 * @Author: 冷俊杰
 * @Description: 管理员Service实现类
 * @DateTime: 2022/6/7 9:47
 **/
public class AdminServiceImpl implements AdminService {
    SqlSession sqlSession = SqlSessionUtils.getSqlSession();
    AdminMapper adminMapper = sqlSession.getMapper(AdminMapper.class);

    public Admin AdminByNP(String Email, String Password) {
        return adminMapper.AdminByNP(Email, Password);
    }
}
